Skip to content

OxCaml: fix with-bounds for arbitrary types - #1466

Merged
jonludlam merged 2 commits into
ocaml:masterfrom
art-w:odoc-fix-oxcaml
Aug 28, 2026
Merged

OxCaml: fix with-bounds for arbitrary types#1466
jonludlam merged 2 commits into
ocaml:masterfrom
art-w:odoc-fix-oxcaml

Conversation

@art-w

@art-w art-w commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Follow-up on #1454 (only the last commit is new, such that it can integrate with the modes support)

@jonludlam reported an error when building the documentation of base, where a form of type 'a t : ... with 'a M.t is used: it turns out that arbitrary types can appear on the right of a with-bound, but currently OxCaml only gives access to the parsetree (see https://github.com/oxcaml/oxcaml/blob/main/typing/types.mli#L426) so we do a best effort conversion.

Fix #1455

@jonludlam

Copy link
Copy Markdown
Member

Thanks very much!

@jonludlam
jonludlam merged commit cfb4e7f into ocaml:master Aug 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to build docs of base with oxcaml

2 participants